import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/sysSetting',
  component: Layout,
  name: 'sysSetting',
  meta: {
    title: '系统设置',
    icon: 'icon',
    roles: [1, 2, 3, 4, 5, 6, 7, 8]
  },
  children: [{
      path: 'list',
      component: _import('message/list'),
      name: 'messageMsg',
      meta: {
        title: '消息管理',
        buttons: {
          add: { label: '新建', enabled: true },
          edit: { label: '编辑', enabled: true },
          view: { label: '查看', enabled: true },
          cancel: { label: '取消发送', enabled: true }
        }
      },
    },
    {
      path: 'messageSearch',
      component: _import('messageSearch/index'),
      name: 'messageSearch',
      meta: {
        title: '短信查询',
      },
    },
    {
      path: 'list',
      component: _import('advice/list/index'),
      name: 'adviceList',
      meta: {
        title: '意见反馈',
        buttons: {
          view: { label: '查看', enabled: true },
          operate: { label: '回复/撤回', enabled: true }
        }
      },
    },
    {
      path: 'parameter',
      component: _import('sysSetting/parameter/list'),
      name: 'parameter',
      meta: {
        title: '字段设置',
        buttons: {
          add: {
            label: '新建',
            enabled: true
          },
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    {
      path: 'addressManage',
      component: _import('sysSetting/addressManage/index'),
      name: 'addressManage',
      meta: {
        title: '省市区管理'
      },
    },
    {
      path: 'help',
      component: _import('sysSetting/help/index'),
      name: 'helpList',
      meta: {
        title: '碧选帮助中心',
        buttons: {
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    {
      path: 'redPharmacyHelp',
      component: _import('sysSetting/redPharmacyHelp/index'),
      name: 'redPharmacyHelpList',
      meta: {
        title: '碧药帮助中心',
        buttons: {
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    {
      path: 'popularKeywords',
      component: _import('sysSetting/popularKeywords/list'),
      name: 'popularKeywords',
      meta: {
        title: '搜索关键字管理',
        buttons: {
          add: {
            label: '新建',
            enabled: true
          },
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    {
      path: 'goodsService',
      component: _import('sysSetting/goodsService/list'),
      name: 'goodsService',
      meta: {
        title: '商品详情服务管理',
        buttons: {
          add: {
            label: '新建',
            enabled: true
          },
          edit: {
            label: '编辑',
            enabled: true
          }
        }
      },
    },
    // {
    //   path: 'clearAppCache',
    //   component: _import('sysSetting/clearAppCache/index'),
    //   name: 'clearAppCache',
    //   meta: {
    //     title: 'APP首页缓存管理'
    //   },
    // },
  ]
}
